import axios from "../util/axios";

//获取渠道管理列表
export function getChannelList() {
  return axios({
    url: `/msdk/getChannel`,
    method: "get",
  });
}

//获取看图猜成语列表
export function getIdiomList() {
  return axios({
    url: `/msdk/getIdiom`,
    method: "get",
  });
}

//获取列表
export function getRiddlesList() {
  return axios({
    url: `/msdk/getRiddles`,
    method: "get",
  });
}

//获取订单列表
export function getOrderList() {
  return axios({
    url: `/msdk/getOrder`,
    method: "get",
  });
}

//登录
export function login(data: any) {
  return axios({
    url: "/login",
    method: "post",
    data,
  });
}

//获取路由
export function getUserRouters(data: any) {
  return axios({
    url: "/getRouters",
    method: "post",
    data,
  });
}